<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="css/listUser.css" type="text/css"></link>
<title></title>
</head>

<body>
	<table>
		<tr>
			<td width="80px" align="left">用户名</td>
			<td width="80px" align="left">密码</td>
			<td width="80px" align="left">用户类型</td>
		</tr>
		<c:forEach items="${users}" var="user">		
		<c:if test="${user.userclass!='管理员'}">
			<tr>
				<td width="80px" align="left">${user.username}</td>
				<td width="80px" align="left">${user.password}</td>
				<td width="80px" align="left">${user.userclass}</td>
			</tr>	
		</c:if>	
		</c:forEach>		
	</table>
	<br />
	<br />
	<br />
		<form method="post" action="./deleteUserAction">
			请输入要删除用户的用户名：
			<input type="text" id="username" name="username"/>
			<input type="submit" value="确认" />			
		</form>
	<br />
	<br />
	<br />
	<a href="./listUserAction">刷新页面</a>
</body>
</html>
